import config from "@/config"
import http from "@/utils/request"

export default {
	add: {
		url: `${config.API_URL}/taskSub/createTaskSub`,
		name: "添加子任务",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	list: {
		url: `${config.API_URL}/taskSub/getTaskSubList`,
		name: "子任务列表",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
}
